From 411e8c2fef67c8c31b466f4cad10cc42b3c328e7 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 21 Jun 2010 18:36:39 +0100 Subject: [PATCH] Revert 21640:05e127771b86 "libxc: Fix Segmentation fault of xend" Nacked-by: Ian Jackson Signed-off-by: Keir Fraser --- tools/libxc/xc_private.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/libxc/xc_private.c b/tools/libxc/xc_private.c index 13a990a58c..9761b98af4 100644 --- a/tools/libxc/xc_private.c +++ b/tools/libxc/xc_private.c @@ -82,10 +82,8 @@ const xc_error *xc_get_last_error(xc_interface *xch) void xc_clear_last_error(xc_interface *xch) { - if (xch) { - xch->last_error.code = XC_ERROR_NONE; - xch->last_error.message[0] = '\0'; - } + xch->last_error.code = XC_ERROR_NONE; + xch->last_error.message[0] = '\0'; } const char *xc_error_code_to_desc(int code) -- 2.30.2